package com.mes.system.mapper;

import com.mes.pojo.Dict;
import com.mes.pojo.DictData;

import java.util.List;

/**
 * @Author 侯伟豪
 * @Company 起点编程
 * @Description
 * @Time 2024/10/15 19:01
 */
public interface DictMapper {
    int insert(Dict dict);

    List<Dict> selectList(Dict dict);

    List<DictData> selectDictDataByDictId(Long dictDataId);

    Dict selectById(Long dictId);

    int updateById(Dict dict);

    Dict selectByName(String dictName);
    Dict selectByType(String dictType);

    int deleteById(Long dictId);

    int deletesById(Long[] dictIds);

    Dict selectDictAndDataByType(String dictType);
}